package com.teamwings.modules.track.mapper;

import com.teamwings.modules.track.entity.OatAppTrack;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author songxm
 * @since 2022-01-19
 */
@Repository
public interface OatAppTrackMapper extends BaseMapper<OatAppTrack> {
    List<OatAppTrack> findByInstIdAndUserId(@Param("instId") String instId, @Param("userId") String userId, @Param("state") Integer state);

    List<OatAppTrack> findByByInstId(@Param("instId") String instId);

    void updateStateByInstIdAndUserId(@Param("instId") String instId, @Param("userId") String userId, @Param("state") Integer state);
}
